package at.irian.jsfatwork.broker.web.model;

import at.irian.jsfatwork.broker.application.TestDataLoader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.context.annotation.Scope;

import javax.annotation.PostConstruct;

/**
 * @author Thomas Spiegl
 */
@Component
@Scope("singleton")
public class StartupBean {

    @Autowired
    private TestDataLoader testDataLoader;

    @PostConstruct
    public void init() {
        testDataLoader.loadTestData();
    }
}